.align 3
.set push
.set noreorder
bal 1f
nop

.dword 0x0000002500010002
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x8a8a8a8a16100000
.dword 0x0201000201010101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x0000008989888287
.dword 0x0201000201000101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x0000008989878187
.dword 0x0201000201010101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000089898a8485
.dword 0x0201000201000101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000089898a8484
.dword 0x0201000201000101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000089898b8583
.dword 0x0201000201000101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000089898d8780
.dword 0x0201000201000101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000089898d8781
.dword 0x0201000201000101
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000089898d8780
.dword 0x0201000201000000
.dword 0x0303000002000103
.dword 0x0000000003020202
.dword 0x00000020207f6000
.dword 0x0403000001ff01ff
.dword 0x0000000000010000
.dword 0x00000000f0020000
.dword 0x00d60000f0000000
.dword 0x000000000f010101
.dword 0x140000070701010f
.dword 0x8421050000000501
.dword 0x0000000000000000
.dword 0x0001000001100100
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000001000100
.dword 0x0000001800060d60
.dword 0x0000001800060d60
.dword 0x0000001800060d60
.dword 0x0000001800060d60
.dword 0x3030c80c03042006
.dword 0x1f06090903a04004
.dword 0x0a0209040200001c
.dword 0x14050c060a080606
.dword 0x0a0a070707070707
.dword 0x070e070707070707
.dword 0x00080100ff000101
.dword 0x0000000004081001
.dword 0x0c000c000c000c00
.dword 0x0c000c0000000000
.dword 0x0008010f02010006
.dword 0x0008010f02010006
.dword 0x0008010f02010006
.dword 0x0008010f02010006
.dword 0x0fff000000000000
.dword 0x0ffffe000000ff00
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000001000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000
.dword 0x0000000000000000


1:
dli v0, 0x900000001fe00180
li v1, 0xff003180
sw v1, (v0)

dli v0, 0x900000000ff00000
ld  v1, 0x18(ra)
sd  v1, 0x18(v0)

dli t0, 0x900000000ff00318
move t1, ra
1:
ld v1, (t1)
sd v1, (v0)
daddiu t1,8
daddiu v0,8
bne v0,t0, 1b
nop

dli v0, 0x900000000ff00000
ld  v1, 0x18(ra)
ori v1,1
sd  v1, 0x18(v0)

dli v0, 0x900000001fe00180
li v1, 0xff003190
sw v1, (v0)



    GET_MC_CS_MAP
dli v0, 0x900000000ff00000
1:
    ld      a2, 0x160(v0)
    dsrl    a2, a2, DRAM_INIT_OFFSET
    and     a2, a2, a1
    //bne     a1, a2, 1b
    bne     a1, a2, 1b
    nop





.set pop

